package ace.module.account.sdk.core.feign.impl;

import ace.module.common.api.annotation.ApiRemoteProxyPriority;
import org.springframework.cloud.openfeign.FeignClient;
import ace.cmp.openfeign.security.oauth2.core.config.FeignInternalServerOauth2SecurityConfig;
import ace.module.account.sdk.core.feign.IamApplicationOauth2ClientFeignApi;
import ace.module.account.sdk.core.constant.SdkConstant;

/**
* 账户应用与oauth2客户端关系 rpc feign.
*
* @author Caspar
*/
@FeignClient(
    name = "${spring.cloud.openfeign.client.config.iamApplicationOauth2ClientFeign.name:" + SdkConstant.FEIGN_SERVICE_NAME + "}",
    contextId = "iamApplicationOauth2ClientFeign",
    path = IamApplicationOauth2ClientFeign.PATH,
    configuration = FeignInternalServerOauth2SecurityConfig.class,
    primary = false
)
@ApiRemoteProxyPriority
public interface IamApplicationOauth2ClientFeign extends IamApplicationOauth2ClientFeignApi {
    String PATH = "${spring.cloud.openfeign.client.config.iamApplicationOauth2ClientFeign.path:/account/iam-application-oauth2-client/rpc}";
}